package com.linkage.yninterface.util.config.operationconfig;

import java.util.HashMap;
import java.util.List;


/**
 * <p>Title: yninterface</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: linkage</p>
 *
 * @author weibo
 * @version 1.0
 */


public class processConf {
  public processConf(operation o,deal d,HashMap transObjects) {
      this.o=o;
      this.d=d;
      this.transObjects=transObjects;
  }


  private operation o;
  private  deal d;
  private HashMap transObjects;


  public String getOperationType() {
  return o.getOperationType();
}


    public String getDealType() {
      return d.getDealType();
  }

  public String getProcessClass() {
  return o.getProcessClass();
}


    public int getInstanceNum() {
        return o.getInstanceNum();
    }


  public String getDatabase() {
    return o.getDatabase();
  }

  public String getDealDescript() {
    return d.getDealDescript();
  }

  public String getDealMethod() {
    return d.getDealMethod();
  }

  public String getProcessDescript() {
    return o.getProcessDescript();
  }



  public List getParas() {
      return d.getParas();
    }

    public Class getTransObjectC(String name) {
        if(name==null||"".equals(name))
            return null;

        Object o =transObjects.get(name);
        if(o!=null){
           return  ((transobject)o).getPc();
        }else{
            return null;
        }
    }

    public String getHashid() {
        return d.getHashid();
    }




}
